<?php
error_reporting(E_ERROR | E_PARSE);
$servername = "localhost";
$username = "root";
$password = "wx25fbbc634ac5586b";
$dbname = "card";
$name=$_GET["name"];
// 创建连接
$conn = new mysqli($servername, $username, $password, $dbname);
$program_char = "utf8" ;
mysqli_set_charset( $conn , $program_char );
$sqls="select * from mingpian where name='$name'";
$result = mysqli_query($conn,$sqls);
$temps=mysqli_fetch_all($result,MYSQLI_ASSOC);
echo json_encode($temps);
?>